package com.shioirikukuri.controller;

import com.shioirikukuri.entity.Order;
import com.shioirikukuri.service.IDiningOrderService;
import com.shioirikukuri.service.IOrderService;
import com.shioirikukuri.service.IReservationOrderService;
import com.shioirikukuri.service.ISpecialPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/orders")
public class OrderController {
	@Autowired
	private IOrderService orderService;

	@Autowired
	private IReservationOrderService reservationOrderService;

	@Autowired
	private ISpecialPriceService specialPriceService;

	@Autowired
	private IDiningOrderService diningOrderService;

	/**
	 * 创建新的订单
	 * @param order
	 * @return
	 */
	@RequestMapping("/create")
	public void createOrder(Order order) {
		orderService.createOrder(order);
	}





}
